﻿using english_sentences.MongoRepository;
using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson;

namespace english_sentences.Models
{
    [EntityDatabase("englishsentences-database")]
    [EntityCollection("UserExtend")]
    public class UserExtend : IEntity<string>
    {
        [BsonId]
        [BsonRepresentation(BsonType.ObjectId)]
        public string Id { get; set; }

        public string UserId { get; set; }

        public int CurrentChapterNo { get; set; }

        public int CurrentSequenceNo { get; set; }

        public int WaitTime { get; set; }

        public bool AutoPlaying { get; set; }
        [BsonIgnore]
        public long TotalQuantity { get; set; }


    }
}
